<%@page import="com.dts.project.dao.ProductMasterDao"%>
<%@page import="com.dts.core.util.CoreList"%>
<%@page import="java.util.Enumeration"%>
<%@page import="com.yourcompany.struts.form.ProductMasterForm"%> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
<html>
<head>
<style>
body,td,th {
	color: #B00606;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style9 {color: #FFFFFF}
body {
	background-color: #003333;
}
.style13 {color: #B00606; font-weight: bold; }
.style14 {color: #666666; font-weight: bold; }
</style>

<title>e-PostOffice</title>
<script type="text/javascript" src="scripts/moveclock.js"></script>


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="scripts/moveclock.js"></script>

<script language="JavaScript" src="scripts/gen_validatorv31.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript" src="scripts/ts_picker.js"></script>
<script language="JavaScript1.1" src="scripts/pass.js">


</script> <script type="text/javascript" src="scripts/image.js"> </script>
 <script type="text/javascript" src="scripts/general.js"> </script>
 <script type="text/javascript" src="scripts/adi.js"> </script>
 <script type="text/javascript" src="scripts/form_validation.js"> </script>


</head>
<body>
<table width="750" align="center" bgcolor="#B00606">
<tr><td>
<img src="images/epostoffice.gif" width="780"/></td>
</tr>
<tr>
   <td bgcolor="#E16A00"><jsp:include page="Adminoptions.jsp"/></td></tr>
<tr><td>
<%--<div align="center">--%>
<%--<table bgcolor="#B00606" width="750" align="center">--%>
<%--<tr>--%>
<%--   <td><jsp:include page="Template.html"/></td></tr></table></div>--%>
<div align="center">
<table bgcolor="#B00606" width="770" align="center">
<tr>
   <td bgcolor="#B00606">
     <marquee><font color="#ECEDF3"><h1>WELCOME TO THE Admin Site</h1></marquee>
<marquee> <img src="images/IndianStamps.gif" height="100"><img src="images/ist2_1276217-vintage-indian-stamps-ephemera.jpg" height="100"><img src="images/images.jpeg" height="100"><img src="images/images1.jpeg" height="100"><img src="images/stamp price.jpg" height="100"><img src="images/2007-03-28-sw-stamps.jpg" height="100"><img src="images/6a00d83452795369e200e5506182958834-500wi.jpg" height="100"><img src="images/stamp-avocet.JPG" height="100"></marquee>
   <p>&nbsp;</p>
    
     <table  align="center" bgcolor="#999999"><tr><td bgcolor="#B00606">
     <span class="style9"><b><u><h2>View Products</h2></u>  </b></span>
    
    
    
    
     <table bgcolor="#999999"> <tr><td bgcolor="#B00606">
    
    
     <%if(request.getParameter("status")!=null){ %>
	<%=request.getParameter("status") %><%} %>
	<form action="deleteProductAction.do" method="post" name="register">
	<%
	try
	{
	
	CoreList cl=(CoreList)request.getAttribute("ViewProducts");
	Enumeration en=cl.elements();
	%>
	<table align="center" border=1>
	<tr bgcolor="#FFFFFF">
	 
	 
	<td colspan=2><div align="center" class="style13">ProductName</div></td>
	<td><div align="center" class="style13">ProductDesc</div></td>
	</tr>
	<%
	while(en.hasMoreElements())
	{
	ProductMasterForm form=(ProductMasterForm)en.nextElement();
	 %>
<tr bgcolor="#666666"><td><div align="center" class="style14 style9">
  <input type="checkbox" name="TypeId" value="<%=form.getProductId() %>"/>
</div></td>
<td><div align="center" class="style14 style9"><a href="UpdateProductMaster.jsp?Id=<%=form.getProductId()%>"><font color="white"><strong><U><%=form.getProductName()%></U></strong></font></a></div></td>
<td><div align="center" class="style14 style9"><font color="white"><strong><%=form.getProductDesc() %></strong></font></div></td></tr>
<%} }catch(Exception e)
{
e.printStackTrace();
}
%>
</table>
<center><input type=submit name="delete" value="Delete"/></center>
</form>
<script language="JavaScript" type="text/javascript">
//You should create the validator only after the definition of the HTML form
  var frmvalidator  = new Validator("register");
   frmvalidator.addValidation("TypeId","req","Please select a TypeId");
  
 </script>
	

     
     
     
     </td></tr></table>
     
     
     
     </td></tr></table>
          <p>&nbsp;</p>
               <p>&nbsp;</p>
                    <p>&nbsp;</p>
                         
                              
     <p>&nbsp;</p></td></tr></table></div>


</body></html> 